package nl.saxion.dbi.model;

import java.util.List;

import lombok.Data;

@Data
public class Database implements StringBasedPropertyAble
{

	private int id;

	private String naam;

	private List<Tabel> tabellen;

	private List<KeyPair> keyPairs;

	@Override
	public Object getProperty(String property)
	{
		switch (property)
		{
		case "id":
			return id;
		case "naam":
			return naam;
		case "tabellen":
			return tabellen;
		case "keypair":
			return keyPairs;
		}
		throw new IllegalStateException("Property " + property + " is niet geldig voor Database");
	}

}
